//1.引入 路由 插件
import React from "react";
import { BrowserRouter as Router, withRouter } from "react-router-dom";
//将 路由表引入
import routes from "router/config";
import RouterView from "router/router";
import Footer from "components/tab-bar";
const App = () => (
    <Router>
        {/* 路由配置需要获取 config   和  routerView中的内容 */}
        <RouterView routes={routes} />
        <Footer />
    </Router>
);

export default withRouter(App);
